package com.wdc.test;

public class UserDemo {
    public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
        UserImpl user = new UserImpl();
        User user1 = (User) user.getUser(Class.forName("com.wdc.test.User"));
        user1.setName("John");
        System.out.println(user1.getName());
    }
}
